package com.example.tests;

import org.testng.Assert;
import org.testng.annotations.Test;
import com.example.fw.Contact;

public class ContactCreationTest extends TestBase {
	
	@Test
	public void testCreateContactWithValidData(){
		String firstName = generateRandomString();
		String lastName = generateRandomString();
		Contact contact = new Contact().setFirstName(firstName).setLastName(lastName);
		app.getContactHelper().createContact(contact);
		Contact createdContact = app.getContactHelper().getFirstContact();
		Assert.assertEquals(contact, createdContact);
	}
}
